package com.zhanggm.hetong.hetong.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 合同表
 * </p>
 *
 * @author zhanggm
 * @since 2021-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_hetong")
public class Hetong implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id",type=IdType.AUTO)
    private Integer id;

    /**
     * 合同类型
     */
    private Integer leixing;

    /**
     * 合同名称
     */
    private String mingcheng;

    /**
     * 合同编码
     */
    private String bianma;

    /**
     * 客户
     */
    private String kehu;

    /**
     * 客户编码
     */
    private String kehuBianma;

    /**
     * 签约时间
     */
    private LocalDate qianyuShijian;

    /**
     * 应收款
     */
    private BigDecimal yingshouEr;

    /**
     * 跟进人Id
     */
    private Integer genjinRen;

    /**
     * 附件地址
     */
    private String fujianUrl;

    /**
     * 添加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime addShijian;

    /*用户Id*/
    private Integer userId;

    /** 合同图片 **/
    private String picture;

    /*审核，0：未审核；1：已审核*/
    private Integer isCheck;

    @TableField(exist = false)
    private String test;

    @TableField(exist = false)
    private String uuid;


}
